<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//列表
Route::get('list',[\App\Http\Controllers\DianController::class,'list']);
//表单
Route::get('dian',[\App\Http\Controllers\DianController::class,'dian']);
//表单添加
Route::post('add',[\App\Http\Controllers\DianController::class,'add']);
//删除
Route::get('del/{id}',[\App\Http\Controllers\DianController::class,'del']);
//Excel导出
Route::any('out',[\App\Http\Controllers\DianController::class,'out']);
//Excel导入
Route::any('enter',[\App\Http\Controllers\DianController::class,'enter']);
